package kassiopeia.commons.io;

import java.io.Serializable;
import java.util.Date;

public abstract class Message implements Serializable {

    private static final long serialVersionUID = -7852881500964963866L;
    private Date creationDate;
    private String sourceId;

    public Message(String sourceId) {
        this(sourceId,new Date());
    }

    public Message(String source, Date creationDate) {
        this.sourceId = source;
        this.creationDate = creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public String getSourceId() {
        return sourceId;
    }
}
